package org.dromara.dao.business.domain;


import io.swagger.v3.oas.annotations.media.Schema;
import org.dromara.common.mybatis.core.domain.BaseDomain;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;

/**
 * 用户余额变动记录表对象 user_balance_log
 *
 *
 * @date 2025-01-08 16:06:32
 */
@Schema(description = "用户余额变动记录表")
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("user_balance_log")
public class UserBalanceLog extends BaseDomain {

    @Serial
    private static final long serialVersionUID = 1L;
    /**
    * 字段 [id]: ID
    */
    @Schema(description = "ID")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;


    /**
     * 字段 [user_id]: 用户ID
     */
    @Schema(description = "用户ID")
    @TableField(value = "user_id")
    private Long userId;

    /**
     * 字段 [remark]: 变动描述
     */
    @Schema(description = "变动描述")
    @TableField(value = "remark")
    private String remark;

    /**
     * 字段 [diamond_before]: 变动前钻石余额
     */
    @Schema(description = "变动前钻石余额")
    @TableField(value = "diamond_before")
    private Integer diamondBefore;

    /**
     * 字段 [diamond_after]: 变动后钻石余额
     */
    @Schema(description = "变动后钻石余额")
    @TableField(value = "diamond_after")
    private Integer diamondAfter;

    /**
     * 字段 [diamond_delta]: 钻石变动 金额 
     */
    @Schema(description = "钻石变动 金额 ")
    @TableField(value = "diamond_delta")
    private Integer diamondDelta;

    /**
     * 字段 [star_before]: 变动前星星余额
     */
    @Schema(description = "变动前星星余额")
    @TableField(value = "star_before")
    private Integer starBefore;

    /**
     * 字段 [star_after]: 变动后星星余额
     */
    @Schema(description = "变动后星星余额")
    @TableField(value = "star_after")
    private Integer starAfter;

    /**
     * 字段 [star_delta]: 星星变动金额 
     */
    @Schema(description = "星星变动金额 ")
    @TableField(value = "star_delta")
    private Integer starDelta;

}
